map <- LogMap(letters[1:10])
map[['obs']] <- c(1, 3, 7)
map[['entry']] <- c(2, 7, 10)
map[]
map[1:5, 2L]
map[c("b", "c", "f"), "obs"]
# Pass `drop = TRUE` to cast to `matrix`
map[1:3, , drop = TRUE]
# Note that `i` is non-reordable
rownames(map)[1:3]
map[c("b", "c", "a"), , drop = TRUE]
Run the code above in your browser using DataLab